<?php
namespace  app\api\validate;
use think\Validate;

class UserValidate extends Validate
{
    protected $rule = [
        'account' => 'require',

        'type' => 'require|in:1,2',
    ];

    protected $message = [
        'account.require' => '请输入账号',
        'type.require' => '登录失败请检查登录方式',
        'type.in' => '登录失败请检查登录方式',
    ];

    protected $scene = [
        'login' => ['account','type'],
    ];
}